#include <stdio.h>
#include <stdlib.h>
#include <stdint.h> 
union busid_format {
    int busid;
    struct {
        uint8_t area_id;
        uint8_t zone_id;
        uint8_t func_id;
        uint8_t inst_id;
    };
};

int main(int argc, char **argv) {
    busid_format f;
    f.area_id = 1;
    f.zone_id = 0;
    f.func_id = 3;
    f.inst_id = 1;
    printf("%x\n", f.busid);
    return 0;
}
